using System;
using UnityEngine;
using System.Collections.Generic;

public class MyAction : MonoBehaviour
{
	public MyAction theAction;
	public event Action<string, int> onActionOver;

	void Start () 
	{

	}
	
	public void MaxAction (string myAction, int number) 
	{
		Debug.Log ("Action");
		Invoke ("OnActionDone", 3f);
	}

	public void OnActionDone(string myAction, int number) 
	{
		Debug.Log ("Action done");

	}
	
	void Update () 
	{

	}
	
}